Fix sysroot detection which would result in /usr/lib/lib/rustlib
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 3 Sep 2023 17:58:53 +0000 (18:58 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sun, 3 Sep 2023 17:58:53 +0000 (18:58 +0100)
commitac908f959527341494aec937907eead6fcb1c7a0
tree48b7410caea0ca6993c12d196bd7037d43da5551
parentedda2b78e8b2c7fd905696b71687cb0860046c04
Fix sysroot detection which would result in /usr/lib/lib/rustlib

Bug: https://github.com/rust-lang/rust/issues/109994

This patch is a mixture of two upstream fix attempts. The first from
https://github.com/rust-lang/rust/pull/108376 didn't actually solve the
problem in Debian's case. After reporting that in $Bug, a second attempt is
made at https://github.com/rust-lang/rust/pull/110281, which worked.

Gbp-Pq: Name u-fix-sysroot-detection-logic.patch
compiler/rustc_session/src/filesearch.rs